import { axios } from '@/utils/request'

export function wechatMpConfConf(data) {
  return axios({
    url: '/wechat_mp/conf/conf',
    method: 'post',
    data
  })
}

export function wechatMpConfConfSave(data) {
  return axios({
    url: '/wechat_mp/conf/conf-save',
    method: 'post',
    data
  })
}

export function wechatMpCardList(data) {
  return axios({
    url: '/wechat_mp/card/list',
    method: 'post',
    data
  })
}

export function wechatMpCardDelete(data) {
  return axios({
    url: '/wechat_mp/card/delete',
    method: 'post',
    data
  })
}

export function wechatMpCardBindList(data) {
  return axios({
    url: '/wechat_mp/card/bind-list',
    method: 'post',
    data
  })
}

export function wechatMpCardCreate(data) {
  return axios({
    url: '/wechat_mp/card/create',
    method: 'post',
    data
  })
}

export function wechatMpCardUpdate(data) {
  return axios({
    url: '/wechat_mp/card/update',
    method: 'post',
    data
  })
}

export function UpdateUserBonus(data) {
  return axios({
    url: '/wechat_mp/card/update-user-bonus',
    method: 'post',
    data
  })
}

export function UpdateUserBonusByCond(data) {
  return axios({
    url: '/wechat_mp/card/update-user-bonus-by-cond',
    method: 'post',
    data
  })
}
